{% extends "Themes/Dabbs/templates/page.twig" %}
{% block head %}
    <title>{{ title }}{% if page > 1 %} 第{{ page }}页{% endif %}-{{ coreConfig.name }}</title>
    <meta name="description" content="{% if description is defined %}{{ description }}{% else %}{{ coreConfig.indexDescription }}{% endif %}">
    <meta name="keywords" content="{% if keywords is defined %}{{ keywords }}{% else %}{{ title }}{% endif %}">
    <meta name="apple-mobile-web-app-title" content="{{ title }}">
{% endblock %}
{% block body_class %} class="images-list nav_fixed"{% endblock %}
{% block head %}
    <title>{{ title }}-{{ coreConfig.name }}</title>
    <meta name="description" content="{{ nodeType['description'] }}">
    <meta name="keywords" content="{{ nodeType['keywords'] }}">
{% endblock %}
{% block body %}
    <div class="title">
        <h1>{{ nodeType['modelName'] }}</h1>
    </div>
    <div class="row">
        {{ content() }}
        {% for item in data.items %}
            <article class="col-md-4 col-lg-4 col-sm-2 col-xs-2">
                <a title="{{ item.title }}" href="{{ url(['for':'node','id':item.id]) }}">
                    <img alt="{{ item.title }}" class="thumb"
                         data-src="{% if item.images AND item.images.value %}{{ thumbnail(270,200,item.images.value) }}{% else %}/themes/dacms/images/banner/270x165-{{ rand(1,7) }}.png{% endif %}">
                    <h4>{{ subString(item.title,16,true) }}</h4></a>
                <div class="note">{% if item.description is defined AND item.description %}{{ subString(item.description,45,true) }}{% else %}{{ subString(item.body,45,true) }}{% endif %}
                    ..
                </div>
            </article>
        {% endfor %}
        <div class="clear"></div>
        {{ partial("Themes/Dabbs/templates/paginator") }}
    </div>
{% endblock %}
{% block right_box %}{% endblock %}